import {
    createRouter,
    createWebHashHistory
} from 'vue-router';
// 路由规则配置
const routes = [{
        path: '/home',
        name: 'home',
        component: () => import('../views/home/index.vue')
    },

    {
        path: '/ceshi',
        name: 'ceshi',
        component: () => import('../views/ceshi.vue')
    }
];
// 创建router实例
const router = createRouter({
    history: createWebHashHistory(),
    routes
});

export default router;